package com.cjq.allservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.File;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author cjq
 * @since 2022-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Type对象", description="")
public class Type implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类型id	")
    @TableId(value = "type_id", type = IdType.ID_WORKER_STR)
    private String typeId;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "0-父亲节点、其他为子节点")
    @TableField("type_parentId")
    private String typeParentId;

    @ApiModelProperty(value = "类型状态：1-启用、0-弃用")
    private Integer typeStatus;

    private Integer judge;

    private String typeAvatar;

    private String typePicture;

    private String typeContent;

    @ApiModelProperty(value = "逻辑删除：1-删除，0-未删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "添加时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    List<Type> children;


}
